import strutils, sequtils

proc row*(m: string, index: int): seq[int] = 
  m.splitLines[index - 1].splitWhitespace.mapIt(it.parseInt)

proc column*(m: string, index: int): seq[int] =
  m.splitLines.mapIt(it.splitWhitespace[index - 1].parseInt)
